package com.work.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("t_resource")
@Schema(description = "资源实体")
public class Resource {
    @TableId(type = IdType.AUTO)
    @Schema(description = "资源ID")
    private Integer id;

    @Schema(description = "资源名称")
    private String resourceName;

    @Schema(description = "资源类型")
    private String resourceType;

    @Schema(description = "资源数量")
    private BigDecimal quantity;

    @Schema(description = "单位")
    private String unit;
}